﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DuncanDAL;

namespace BLL.BudgetService
{
    /// <summary>
    /// 编辑预算项目
    /// </summary>
    public class EditBudgetTransaction:ICommand
    {
        private T_BudgetObject newBudgetObject;

        public T_BudgetObject NewBudgetObject
        {
            get { return newBudgetObject; }
            set { newBudgetObject = value; }
        }

        public EditBudgetTransaction()
        { }

        public EditBudgetTransaction(T_BudgetObject _BudgetObject)
        {
            newBudgetObject = _BudgetObject;
        }

        #region ICommand 成员

        public void Execute()
        {
            BudgetDataService objBudgetDataService = new BudgetDataService();
            objBudgetDataService.Update(newBudgetObject);
        }

        #endregion
    }
}
